700 |
How can I change the shape of the task bar
Exg2anttlib_tlb::IBarPtr var_Bar = G2antt1->Chart->Bars->Copy(L"Task",L"T2"); var_Bar->StartShape = Exg2anttlib_tlb::ShapeCornerEnum::exShapeIconDown1; var_Bar->StartColor = RGB(255,0,0); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Columns->Add(L"Column"); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Item 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
699 |
How can I change the starting shape for all task bars
Exg2anttlib_tlb::IBarPtr var_Bar = G2antt1->Chart->Bars->get_Item(TVariant("Task")); var_Bar->StartShape = Exg2anttlib_tlb::ShapeCornerEnum::exShapeIconUp1; var_Bar->StartColor = RGB(255,0,0); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Columns->Add(L"Column"); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
698 |
How can I change the height of the task bar
G2antt1->Chart->Bars->Copy(L"Task",L"T2")->Height = 17; G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Columns->Add(L"Column"); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Item 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
697 |
How can I change the height for all task bars
G2antt1->Chart->Bars->get_Item(TVariant("Task"))->Height = 17; G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Columns->Add(L"Column"); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
696 |
How can I change the color of the task bar
G2antt1->Chart->Bars->Copy(L"Task",L"T2")->Color = RGB(255,0,0); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Columns->Add(L"Column"); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); var_Items->AddBar(var_Items->AddItem(TVariant("Item 2")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
695 |
How can I change the color for all task bars
G2antt1->Chart->Bars->get_Item(TVariant("Task"))->Color = RGB(255,0,0); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Columns->Add(L"Column"); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
694 |
How can I change the shape for all task bars
G2antt1->Chart->Bars->get_Item(TVariant("Task"))->Shape = Exg2anttlib_tlb::ShapeBarEnum::exShapeSolidDown; G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Columns->Add(L"Column"); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
693 |
How can I change the shape of the task bar
G2antt1->Chart->Bars->Copy(L"Task",L"T2")->Shape = Exg2anttlib_tlb::ShapeBarEnum::exShapeThinCenter; G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Columns->Add(L"Column"); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
692 |
How can I change the pattern or style for all task bars
G2antt1->Chart->Bars->get_Item(TVariant("Task"))->Pattern = Exg2anttlib_tlb::PatternEnum::exPatternFDiagonal; G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Columns->Add(L"Column"); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
691 |
How can I change the pattern of the task bar
G2antt1->Chart->Bars->Copy(L"Task",L"T2")->Pattern = Exg2anttlib_tlb::PatternEnum::exPatternFDiagonal; G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Columns->Add(L"Column"); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Item 1")),TVariant("T2"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
690 |
How can I add a percent bar in the chart area, so the task bar is splited for non working days or hours
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->Bars->Add(L"Task%Progress:Split")->Shortcut = L"TS"; G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("TS"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,16).operator double()),TVariant("P1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("P1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.14)); var_Items->set_ItemBar(h,TVariant("P1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); |
689 |
How can I add a bar in the chart area, so the task bar is splited for non working days or hours
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->Bars->Add(L"Task:Split")->Shortcut = L"TS"; G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("TS"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,16).operator double()),TNoParam(),TNoParam()); |
688 |
How can I add a split bar in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Split"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TNoParam(),TNoParam()); |
687 |
How can I add a progress bar in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Progress"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TNoParam(),TNoParam()); |
686 |
How can I add a milestone bar in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Milestone"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,2).operator double()),TNoParam(),TNoParam()); |
685 |
How can I add a summary bar in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Summary"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TNoParam(),TNoParam()); |
684 |
How can I add a project summary bar in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Project Summary"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TNoParam(),TNoParam()); |
683 |
How can I add a deadline bar in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Deadline"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,2).operator double()),TNoParam(),TNoParam()); |
682 |
How can I add a task bar in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
681 |
How can I assign a picture or an icon to a bar in the chart
G2antt1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif"); G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->set_ItemHeight(h,48); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("<img>p1</img>")); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarHAlignCaption,TVariant(2)); |
680 |
How can I assign a picture or an icon to a bar in the chart
G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("<img>1</img>")); |
679 |
How can I display or add an anchor or a hyperlink in the link
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("just <a1>link</a>")); |
678 |
How can I display a picture or an icon on the link
G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("just <img>1</img> link")); |
677 |
How can I display a picture or an icon on the link
G2antt1->HTMLPicture[L"pic1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif"); G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); var_Items->AddItem(TVariant("")); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("<img>pic1</img><br><br>just a link")); |
676 |
How can I display some HTML text or caption on link
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("L<b>1</b>")); |
675 |
How can I assign a tooltip to a link
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("L<b>1</b>")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkToolTip,TVariant("This is a bit of text that's shown when the cursor hovers the link")); |
674 |
Can I change the width or the size of the link
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkStyle,TVariant(0)); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkWidth,TVariant(2)); |
673 |
Can I change the style of the link
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkStyle,TVariant(4)); |
672 |
Can I change the color of the link
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkColor,TVariant(255)); |
671 |
Can I change the part of the bar where the link ends
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkStartPos,TVariant(1)); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkEndPos,TVariant(1)); |
670 |
Can I change the part of the bar where the link starts
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkStartPos,TVariant(0)); |
669 |
How can I associate an extra data to a link
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkUserData,TVariant("your data")); |
668 |
How can I show or hide a specified link
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkEndBar,TVariant(false)); |
667 |
How can I get the key of the bar where the link end
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->AddItem(TVariant(var_Items->get_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkEndBar))); |
666 |
How can I get the key of the bar where the link starts
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->AddItem(TVariant(var_Items->get_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkStartBar))); |
665 |
How can I get the handle of the item where the link ends
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->AddItem(TVariant(var_Items->get_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkEndItem))); |
664 |
How can I get the handle of the item where the link starts
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->AddItem(TVariant(var_Items->get_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkStartItem))); |
663 |
How can I enumerate the links in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->AddLink(TVariant("L2"),h2,TVariant("K2"),h1,TVariant("K1")); var_Items->AddItem(TVariant(var_Items->get_FirstLink())); var_Items->AddItem(TVariant(var_Items->get_NextLink(TVariant(var_Items->get_FirstLink())))); |
662 |
How can I access the properties and method of the link between two bars
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,3).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->set_Link(TVariant("L1"),Exg2anttlib_tlb::LinkPropertyEnum::exLinkText,TVariant("L<b>1</b>")); |
661 |
How can I remove a link between two bars
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->ClearLinks(); |
660 |
How can I remove a link between two bars
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); var_Items->RemoveLink(TVariant("L1")); |
659 |
How do I add a link between two bars
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->AddLink(TVariant("L1"),h1,TVariant("K1"),h2,TVariant("K2")); |
658 |
How do I ungroup the bars in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->GroupBars(h1,TVariant("K1"),true,h2,TVariant("K2"),true,TNoParam(),TNoParam()); var_Items->GroupBars(h1,TVariant("K1"),false,h2,TVariant("K2"),false,TNoParam(),TNoParam()); var_Items->UngroupBars(h1,TVariant("K1"),h2,TVariant("K2")); |
657 |
How do I group one or more bars in the chart, so they are moved together
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h1 = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h1,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); long h2 = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h2,TVariant("Task"),TVariant(TDateTime(2001,1,5).operator double()),TVariant(TDateTime(2001,1,7).operator double()),TVariant("K2"),TNoParam()); var_Items->GroupBars(h1,TVariant("K1"),true,h2,TVariant("K2"),true,TNoParam(),TNoParam()); var_Items->GroupBars(h1,TVariant("K1"),false,h2,TVariant("K2"),false,TNoParam(),TNoParam()); |
656 |
How do I find the number or count of bars in the item
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,1).operator double()),TVariant(TDateTime(2001,1,2).operator double()),TVariant("K1"),TNoParam()); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,4).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K2"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K2"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant(var_Items->get_ItemBar(h,TVariant("<*>"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarsCount))); |
655 |
How can I assign any extra data to a bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarData,TVariant("your data")); |
654 |
How can I enable or disable resizing the percent value of a progress bar, at runtime
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.35)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCanResizePercent,TVariant(false)); |
653 |
Is there any way to change the background color for percent value being displayed on the progress bar
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.35)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercentCaptionFormat,TVariant("<bgcolor=FF0000> %p%</bgcolor>")); |
652 |
Is there any way to change the color for percent value being displayed on the progress bar
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.35)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercentCaptionFormat,TVariant("<fgcolor=FF0000>%p%</fgcolor>")); |
651 |
Is there any way to change the font for percent value being displayed on the progress bar
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.35)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercentCaptionFormat,TVariant("<b><font Tahoma;12>%%p</font></b>")); |
650 |
How can I horizontally align the caption / percent of a progress-bar
G2antt1->BeginUpdate(); G2antt1->Columns->Add(L"Task"); Exg2anttlib_tlb::IChartPtr var_Chart = G2antt1->Chart; var_Chart->LevelCount = 2; var_Chart->set_PaneWidth(false,128); var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IBarPtr var_Bar = var_Chart->Bars->Add(L"Task%Progress"); var_Bar->Shortcut = L"Percent"; var_Bar->set_Def(Exg2anttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); var_Bar->set_Def(Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(1)); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Left")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarAlignPercentCaption,TVariant(0)); h = var_Items->AddItem(TVariant("Center")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarAlignPercentCaption,TVariant(1)); h = var_Items->AddItem(TVariant("Right")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarAlignPercentCaption,TVariant(2)); h = var_Items->AddItem(TVariant("Left")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarAlignPercentCaption,TVariant(0)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.5)); h = var_Items->AddItem(TVariant("Center")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.5)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarAlignPercentCaption,TVariant(1)); h = var_Items->AddItem(TVariant("Right")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarAlignPercentCaption,TVariant(2)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.5)); G2antt1->EndUpdate(); |
649 |
Is there any way to change the format of the percent being displayed on the progress bar
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.4)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercentCaptionFormat,TVariant("<b>%p/100</b>")); |
648 |
How can I show or hide the percent value in the progress bar
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.4)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); |
647 |
How can I change the percent value in a progress bar
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Chart->Bars->Add(L"Task%Progress")->Shortcut = L"Percent"; Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Percent"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.4)); |
646 |
How can I add a percent bar
// BarResize event - Occurs when a bar is moved or resized. void __fastcall TForm1::G2antt1BarResize(TObject *Sender,Exg2anttlib_tlb::HITEM Item,Variant Key) { OutputDebugString( L"Key" ); } G2antt1->BeginUpdate(); G2antt1->Columns->Add(L"Task"); Exg2anttlib_tlb::IChartPtr var_Chart = G2antt1->Chart; var_Chart->LevelCount = 2; var_Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); var_Chart->set_PaneWidth(false,64); Exg2anttlib_tlb::IBarPtr var_Bar = var_Chart->Bars->Add(L"Task%Progress"); var_Bar->Shortcut = L"P"; var_Bar->set_Def(Exg2anttlib_tlb::ItemBarPropertyEnum::exBarShowPercentCaption,TVariant(true)); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("P"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.4)); h = var_Items->AddItem(TVariant("Task 2")); var_Items->AddBar(h,TVariant("Task%Progress"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K2"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K2"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarPercent,TVariant(0.15)); G2antt1->EndUpdate(); |
645 |
How can I fix or lock a specified bar at runtime, in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCanResize,TVariant(false)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCanMove,TVariant(false)); |
644 |
How can I enabled or disable moving a specified bar at runtime, in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCanResize,TVariant(false)); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCanMove,TVariant(false)); |
643 |
How can I enabled or disable sizing a specified bar at runtime, in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCanResize,TVariant(false)); |
642 |
How can I change the key of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarKey,TVariant("NewK")); var_Items->set_ItemBar(h,TVariant("NewK"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant(var_Items->get_ItemBar(h,TVariant("NewK"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarKey))); |
641 |
Can I add a bar in the chart, using your EBN files
G2antt1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn")); G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant(""),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,5).operator double()),TVariant("K1"),TVariant(" EBN ")); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarBackColor,TVariant(16777216)); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,6).operator double()),TVariant(TDateTime(2001,1,8).operator double()),TVariant("K2"),TNoParam()); |
640 |
How can I change the background color of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Chart->Bars->Copy(L"Task",L"TaskR")->Color = RGB(255,0,0); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("TaskR"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); |
639 |
How can I change the background color of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Chart->ShowNonworkingDates = false; Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarBackColor,TVariant(8421504)); |
638 |
How can I change the background color of the HTML text or caption of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("<bgcolor=FF0000> to do </bgcolor>")); |
637 |
How can I change the foreground color of the HTML text or caption of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TVariant("t<fgcolor=0000FF>o</fgcolor> do")); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarForeColor,TVariant(16777215)); |
636 |
How can I change the foreground color of the HTML text or caption of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("<bgcolor=FF0000> to do </bgcolor>")); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarForeColor,TVariant(16777215)); |
635 |
How can I assign a tooltip to a bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarToolTip,TVariant("This is a bit of text that's displayed when the cursor hovers the bar")); |
634 |
How can I vertically align the HTML text or caption of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->set_ItemHeight(h,32); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("<bgcolor=FF0000> to do </bgcolor>")); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarVAlignCaption,TVariant(0)); |
633 |
How can I align the HTML text or caption of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant("<bgcolor=FF0000> to do </bgcolor>")); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarHAlignCaption,TVariant(0)); |
632 |
How can I assign a text or some HTML caption to a bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarCaption,TVariant(" <bgcolor=FF0000>to do</bgcolor> ")); |
631 |
How can I change the ending date of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarEnd,TVariant(TDateTime(2001,1,6).operator double())); |
630 |
How can I change the starting date of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarStart,TVariant(TDateTime(2001,1,1).operator double())); |
629 |
How can I change the style or the name of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarName,TVariant("Progress")); |
628 |
How can I access properties and methods of the bar in the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); var_Items->set_ItemBar(h,TVariant("K1"),Exg2anttlib_tlb::ItemBarPropertyEnum::exBarName,TVariant("Progress")); |
627 |
How can I remove all bars in the item
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); var_Items->ClearBars(h); |
626 |
How can I remove a bar from the chart
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; long h = var_Items->AddItem(TVariant("Task 1")); var_Items->AddBar(h,TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TVariant("K1"),TNoParam()); var_Items->RemoveBar(h,TVariant("K1")); |
625 |
How can I add a bar and some text inside, in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TNoParam(),TVariant(" to do ")); |
624 |
How can I add a bar and some text inside, in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,6).operator double()),TNoParam(),TVariant("<bgcolor=FF0000> to do </bgcolor>")); |
623 |
How can I add an anchor or a hyperline in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant(""),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,14).operator double()),TNoParam(),TVariant("just a <a1>link</a>")); |
622 |
How can I add some text or captions in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant(""),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,14).operator double()),TNoParam(),TVariant("just a <b>caption</b>")); |
621 |
How can I add a bar in the chart area
G2antt1->Columns->Add(L"Task"); G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); Exg2anttlib_tlb::IItemsPtr var_Items = G2antt1->Items; var_Items->AddBar(var_Items->AddItem(TVariant("Task 1")),TVariant("Task"),TVariant(TDateTime(2001,1,2).operator double()),TVariant(TDateTime(2001,1,4).operator double()),TNoParam(),TNoParam()); |
620 |
Is there any option to put a picture or an icon to the thumb part of the scroll bar
G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); G2antt1->ScrollPartCaption[Exg2anttlib_tlb::ScrollBarEnum::exHChartScroll,Exg2anttlib_tlb::ScrollPartEnum::exThumbPart] = L"<img>1</img>"; G2antt1->ScrollThumbSize[Exg2anttlib_tlb::ScrollBarEnum::exHChartScroll] = 24; |
619 |
How can I scroll fast the chart, or page by page
G2antt1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")); G2antt1->ScrollHeight = 20; G2antt1->ScrollButtonWidth = 20; G2antt1->AllowChartScrollPage = true; G2antt1->ScrollPartCaption[Exg2anttlib_tlb::ScrollBarEnum::exHChartScroll,Exg2anttlib_tlb::ScrollPartEnum::exLeftB5Part] = L"<img>1</img>"; G2antt1->ScrollPartCaption[Exg2anttlib_tlb::ScrollBarEnum::exHChartScroll,Exg2anttlib_tlb::ScrollPartEnum::exRightB1Part] = L"<img>2</img>"; |
618 |
How can I scroll fast the chart, or page by page
G2antt1->ScrollButtonWidth = 16; G2antt1->AllowChartScrollPage = true; G2antt1->ScrollPartCaption[Exg2anttlib_tlb::ScrollBarEnum::exHChartScroll,Exg2anttlib_tlb::ScrollPartEnum::exLeftB5Part] = L"<<"; G2antt1->ScrollPartCaption[Exg2anttlib_tlb::ScrollBarEnum::exHChartScroll,Exg2anttlib_tlb::ScrollPartEnum::exRightB1Part] = L">>"; |
617 |
How can I scroll fast the chart, or page by page
|
616 |
How can I display years, from 3 to 3
G2antt1->Chart->UnitWidth = 64; Exg2anttlib_tlb::ILevelPtr var_Level = G2antt1->Chart->get_Level(0); var_Level->set_Label(TVariant("<%yyyy%>")); var_Level->Unit = Exg2anttlib_tlb::UnitEnum::exYear; var_Level->Count = 3; |
615 |
How can I display years
G2antt1->Chart->UnitWidth = 64; Exg2anttlib_tlb::ILevelPtr var_Level = G2antt1->Chart->get_Level(0); var_Level->set_Label(TVariant("<%yy%>")); var_Level->Unit = Exg2anttlib_tlb::UnitEnum::exYear; |
614 |
How can I display years
|
613 |
How can I display months, from 3 to 3
G2antt1->Chart->set_FirstVisibleDate(TVariant(TDateTime(2001,1,1).operator double())); G2antt1->Chart->LevelCount = 2; G2antt1->Chart->UnitWidth = 64; G2antt1->Chart->get_Level(0)->set_Label(TVariant(1)); Exg2anttlib_tlb::ILevelPtr var_Level = G2antt1->Chart->get_Level(1); var_Level->set_Label(TVariant("<%mmmm%>")); var_Level->Unit = Exg2anttlib_tlb::UnitEnum::exMonth; var_Level->Count = 3; |
612 |
How can I display months
G2antt1->Chart->UnitWidth = 64; G2antt1->Chart->LevelCount = 2; G2antt1->Chart->get_Level(0)->set_Label(TVariant(1)); Exg2anttlib_tlb::ILevelPtr var_Level = G2antt1->Chart->get_Level(1); var_Level->set_Label(TVariant("<%mmmm%>/<%yy%>")); var_Level->Unit = Exg2anttlib_tlb::UnitEnum::exMonth; |
611 |
How can I display months
G2antt1->Chart->LevelCount = 2; G2antt1->Chart->UnitWidth = 64; G2antt1->Chart->get_Level(0)->set_Label(TVariant(1)); G2antt1->Chart->get_Level(1)->set_Label(TVariant(16)); |
610 |
How can I display weeks
G2antt1->Chart->LevelCount = 2; G2antt1->Chart->UnitWidth = 64; G2antt1->Chart->get_Level(0)->set_Label(TVariant(17)); G2antt1->Chart->get_Level(1)->set_Label(TVariant(256)); |
609 |
How can I display weeks
G2antt1->Chart->LevelCount = 2; G2antt1->Chart->get_Level(0)->set_Label(TVariant(17)); G2antt1->Chart->get_Level(1)->set_Label(TVariant("<%ww%>")); |
608 |
How can I display days, from 2 to 2
G2antt1->Chart->LevelCount = 2; G2antt1->Chart->get_Level(0)->set_Label(TVariant(256)); Exg2anttlib_tlb::ILevelPtr var_Level = G2antt1->Chart->get_Level(1); var_Level->set_Label(TVariant("<%dd%>")); var_Level->Count = 2; |
607 |
How can I display days
G2antt1->Chart->LevelCount = 2; G2antt1->Chart->get_Level(0)->set_Label(TVariant(256)); G2antt1->Chart->get_Level(1)->set_Label(TVariant("<%dd%>")); |
606 |
How can I display days
G2antt1->Chart->LevelCount = 2; G2antt1->Chart->get_Level(0)->set_Label(TVariant(256)); G2antt1->Chart->get_Level(1)->set_Label(TVariant(4096)); |
605 |
How can I display hours, from 6 to 6
G2antt1->Chart->set_FirstVisibleDate(TVariant("00:00")); G2antt1->Chart->LevelCount = 2; G2antt1->Chart->get_Level(0)->set_Label(TVariant(4096)); Exg2anttlib_tlb::ILevelPtr var_Level = G2antt1->Chart->get_Level(1); var_Level->set_Label(TVariant("<%hh%>")); var_Level->Count = 6; |
604 |
How can I display hours
G2antt1->Chart->LevelCount = 2; G2antt1->Chart->get_Level(0)->set_Label(TVariant(4096)); G2antt1->Chart->get_Level(1)->set_Label(TVariant("<%hh%>")); |
603 |
How can I display hours
G2antt1->Chart->LevelCount = 2; G2antt1->Chart->get_Level(0)->set_Label(TVariant(4096)); G2antt1->Chart->get_Level(1)->set_Label(TVariant(65536)); |
602 |
How can I display minutes, from 15 to 15
G2antt1->Chart->set_FirstVisibleDate(TVariant("00:00")); G2antt1->Chart->LevelCount = 2; G2antt1->Chart->get_Level(0)->set_Label(TVariant(65536)); Exg2anttlib_tlb::ILevelPtr var_Level = G2antt1->Chart->get_Level(1); var_Level->set_Label(TVariant("<%nn%>")); var_Level->Count = 15; |
601 |
How can I display minutes
G2antt1->Chart->LevelCount = 2; G2antt1->Chart->get_Level(0)->set_Label(TVariant(65536)); G2antt1->Chart->get_Level(1)->set_Label(TVariant("<%nn%>")); |